package sdedit;

import org.eclipse.emf.common.util.TreeIterator;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.xtext.generator.IFileSystemAccess;
import org.eclipse.xtext.xbase.lib.IteratorExtensions;
import sdmakerz_v1.coresyntax.generator.interfaces.IContext;
import sdmakerz_v1.coresyntax.generator.interfaces.ISDMakerModelLevelGen;
import sdmakerz_v2.sdedit_extension.sDMakerV2.SDEditModel;

@SuppressWarnings("all")
public class SDEditToSDMakerGen implements ISDMakerModelLevelGen {
  public boolean canHandle(final Resource input) {
    boolean canHandle = false;
    TreeIterator<EObject> _allContents = input.getAllContents();
    Iterable<EObject> _iterable = IteratorExtensions.<EObject>toIterable(_allContents);
    for (final EObject eo : _iterable) {
      if ((eo instanceof SDEditModel)) {
        canHandle = true;
      }
    }
    return canHandle;
  }
  
  public void doGenerate(final IContext context, final IFileSystemAccess fsa) {
  }
}
